import service from '../../../browser/msg/service';

/**
 * 获取微信token
 * @example get_token();
 */
export default async function get_token() {
	const msg = {
		serviceflag: 'getaccesstoken',
		thirdpay_type: 'weixin_pubno'
	};
	return await service<string>('thirdpart.weixinpublicno', msg, false, false);
}
